/*
 * NodeMuatble.h
 *
 *  Created on: Apr 25, 2012
 *      Author: REZNIK
 */

#ifndef NODEMUATBLE_H_
#define NODEMUATBLE_H_

#include "NodeImpl.h"
#include "ListException.h"

namespace cs236703_spring2012_hw2{

class NodeMutable : public NodeImpl
{
private:
	int value;
public:
	NodeMutable(int _value) : 	value(_value) {}
	virtual ~NodeMutable(){}

	virtual void SetValue(int _value){ value = _value; }
	virtual int GetValue() const { return value; }
	virtual bool IsImmutable() const{ return false; }
};

};

#endif /* NODEMUATBLE_H_ */
